
		<ol class="breadcrumb">
		  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;{{lang('dashboard')}}</a></li>
		  <li><a href="/rents/mine">{{lang('rent')}}</a></li>
		  <li class="active">{{lang('new_rent')}}</li>
		</ol>           
       <hr>

{{$this->Form->create('Rent',array('class'=>'form-horizontal','role'=>'form'))}}
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentName">{{lang('rent_name')}}</label>
		<div class="col-sm-9 controls">
			{{$this->Form->hidden('id')}}
			{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentCateId">{{lang('rent_cate_id')}}</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('cate_id',array('class'=>'form-control','div'=>false,'label'=>false))}}
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentCoverImg">{{lang('rent_coverimg')}}</label>
		<div class="col-sm-9 controls select">
			{{$this->Swfupload->load('coverimg',array(
			'label'=>false,'modelClass'=>'Rent',
			'no_db'=>1,'upload_limit'=>1,
			'file_types'=> '*.jpg;*.gif;*.png;*.bmp',
			'isadmin'=>false
			))}}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentMsgType">{{lang('rent_price')}}</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('price',array('class'=>'form-control','div'=>false,'label'=>false,))}}
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentMsgType">{{lang('bond')}}</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('pledge',array('class'=>'form-control','div'=>false,'label'=>false,))}}
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label" for="RentEndDate">{{lang('end_date')}}</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('end_date',array('class'=>'form-control datepicker','type'=>'text','div'=>false,'label'=>false,))}}
		</div>
	</div>

	<div class="form-group" id="divRentSummary">
		<label class="col-sm-2 control-label" for="RentSummary">{{lang('summary')}}</label>
		<div class="col-sm-9 controls">
			{{$this->Form->input('summary',array('class'=>'form-control','div'=>false,'label'=>false,'rows'=>'5','after'=>'<p></p>'))}}
		</div>
	</div>

	{{template orders/order_consignee}}</div>
		
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}
	</div>

{{$this->Html->script(array(
	'swfupload/swfupload.js',
	'swfupload/swfupload.queue.js',
	'swfupload/swfupload.cookies.js',
	'swfupload/fileprogress.js',
	'swfupload/handlers.js',
))}}
